home *** CD-ROM | disk | FTP | other *** search
- /* STSWTCHR.C --- p. 667 */
- #include <stdio.h>
- #include <dos.h>
- main(int argc, char **argv)
- {
- char c;
- if(argc < 2)
- printf("Usage: %s <switch_char>\n", argv[0]);
- /* Set new switch character */
- c = argv[1][0];
- setswitchar(c);
- /* Verify the new switch character */
- printf("The current switch char is %c\n", getswitchar());
- }